#pragma once
#include<iostream>
#include<stdlib.h>
using namespace std;
typedef int DataType;
class Stack
{
public:
	void StackInit();
	void StackPush(DataType x);
	void StackPop();
	DataType Top();
	bool Empty();
	int StackSize();
	void StackDestory();
	void StackPrint();

private:
	void Checkcapacity();

	DataType* _arry;
	int _size;
	int _capacity;
};
